<%@ page contentType="text/html; charset=ISO-8859-1"%>
<html>
	<head>
		<title>A simple form processing Servlet example</title>
	</head>
	<body>
		<h3>User registration example</h3>
		<form action="FormServlet" method="post">
		<table>
			<tr>
				<td>User Name</td>
				<td><input type="text" name="username"></td>
			</tr>
			<tr>
				<td>Password</td>
				<td><input type="password" name="password"></td>
			</tr>
			<tr>
				<td>Bio</td>
				<td><textarea rows="5" cols="50" name="bio"></textarea> </td>
			</tr>
			<tr>
				<td>Country</td>
				<td>
					<select name="country">
						<option value="ind">India</option>
						<option value="usa">America</option>
						<option value="ca">Canada</option>
						<option value="aus">Australia</option>
					</select> 				
				</td>
			</tr>
			<tr>
				<td>Subscribe for newsletter</td>
				<td>	
					<label for="newsletter1">Yes</label>				
					<input type="radio" id="newsletter1" name="newsletter" value="Yes" checked="checked">
					<label for="newsletter2">No</label>
					<input type="radio" id="newsletter2"name="newsletter" value="No">
				</td>
			</tr>
			<tr>
				<td>Preferences</td>
				<td>
					<label for="preference1">Receive mail from members</label>	
					<input type="checkbox" id="preference1" name="receivemail" value="yes" checked="checked"><br/>
					<label for="preference2">Receive notifications</label>
					<input type="checkbox" id="preference2" name="receivenotification" value="yes"><br/>
				</td>
			</tr>	
			<tr>
				<td>
					<input type="submit" value="Submit">&nbsp;
					<input type="reset">
				</td>
				<td></td>
		</table>
	</form>
	</body>
</html>